﻿using System.Collections.Generic;
using Assets.Scripts.Net.Data.Model;

namespace Assets.Scripts.Net.Data.Reader
{
    /// <summary>
    /// 学习经历
    /// </summary>
    public class StudyExpInfoReader:NetInfoReaderBase
    {
        public StudyExpInfoReader(List<object> list) : base(list)
        {
            if(list==null)return;
            List<StudyExpInfo> infos = new List<StudyExpInfo>();
            for (int i = 0; i < list.Count; i++)
            {
                StudyExpInfo info = new StudyExpInfo();
                Dictionary<string, object> dict = list[i] as Dictionary<string, object>;
                AutoSetValue<StudyExpInfo>(dict, info);
                infos.Add(info);
            }
            AddInfoToFactory<List<StudyExpInfo>>(infos);
        }
    }
}